home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 9610 < prev    next >
Encoding:
Text File  |  1996-08-05  |  860 b   |  28 lines

  1. Path: cnn.Princeton.EDU!usenet
  2. From: joeross@princeton.edu (Joe Ross)
  3. Newsgroups: comp.lang.c++,gnu.g++.help
  4. Subject: Re: DONT UNDERSTAND - array of char error
  5. Date: 2 Mar 1996 21:51:23 GMT
  6. Organization: Princeton University
  7. Message-ID: <4hafsr$dbc@cnn.Princeton.EDU>
  8. References: <4habvu$99j@panix.com>
  9. NNTP-Posting-Host: joeross.student.princeton.edu
  10. Mime-Version: 1.0
  11. Content-Type: Text/Plain; charset=ISO-8859-1
  12. X-Newsreader: WinVN 0.99.5
  13.  
  14. >I have built a class called Param for passing labels and
  15. >parameters around.  I want to store the labels and parameters
  16. >in an array of strings.  To this end, I had the following
  17. >declaration in my header file:
  18. >
  19. >        char *labels[];
  20. >        char *params[];
  21. >
  22. >        param.h:21: field `labels' has incomplete type
  23.  
  24. i think you have to specify how big you want the array to be:
  25.     char *labels[SIZE_OF_ARRAY];
  26.  
  27.  
  28.